<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<s:head/>
<sj:head />
<sb:head />
<title><s:text name="addOrEdit" /></title>
</head>
<body>
	<s:form action="save" theme="bootstrap" cssClass="form-horizontal" validate="true" key="addOrEdit" >
		<s:hidden name="user.id" />
		<s:div cssClass="col-xs-6">
			<s:textfield key="user.name" />
		</s:div>
		<s:div cssClass="col-xs-6">
			<s:textfield key="user.age" />
		</s:div>
		<s:div cssClass="col-xs-6">
			<s:select key="user.gender" list="@com.zjnx.train.util.Gender@ALL" listValue="%{getText(value)}" listKey="value" />
		</s:div>
		<s:div cssClass="col-xs-6">
			<s:textfield key="user.address" />
		</s:div>
		<s:div cssClass="col-xs-offset-6 col-xs-2">
			<s:actionerror/>
			<s:actionmessage/>
			<s:reset cssClass="btn btn-default" value="%{getText('reset')}" />
			<s:submit cssClass="btn btn-default" value="%{getText('save')}" />
		</s:div>
	</s:form>
</body>
</html>